package com.taobao.tbapi;

import com.taobao.api.ApiException;

/**
 * TB api server exception
 *
 * @author ly
 * @version
 * @Date 2013-8-17上午11:20:25
 *
 */
public class TBApiServerException extends Exception {
  public TBApiServerException(String message, Throwable cause) {
    super(message, cause);
  }

  public TBApiServerException(String message) {
    super(message);
  }

  public static TBApiServerException genException(ApiException e) {
    // JDBCBase.insert(new TBApiServerExceptionLog(e));
    return new TBApiServerException(e.getMessage());
  }
}
